<?php
class AppController extends Controller {
	var $components = array('Auth');
	
	function beforeFilter() {
        $this->Auth->loginAction = array('controller' => 'users', 'action' => 'login');
        $this->Auth->logoutRedirect = array('controller' => 'users', 'action' => 'login');
        $this->Auth->loginRedirect = array('controller' => 'tournaments', 'action' => 'index');
    }
	
}
?>
